package com.edu.base.ums.memberShareRecord.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.edu.base.ums.memberShareRecord.mapper.ClsMemberShareRecordMapper;
import com.edu.base.ums.memberShareRecord.domain.ClsMemberShareRecord;
import com.edu.base.ums.memberShareRecord.service.IClsMemberShareRecordService;

/**
 * 会员邀请码分享记录Service业务层处理
 * 
 * @author zw
 * @date 2022-06-27
 */
@Service
public class ClsMemberShareRecordServiceImpl implements IClsMemberShareRecordService 
{
    @Autowired
    private ClsMemberShareRecordMapper clsMemberShareRecordMapper;

    /**
     * 查询会员邀请码分享记录
     * 
     * @param id 会员邀请码分享记录ID
     * @return 会员邀请码分享记录
     */
    @Override
    public ClsMemberShareRecord selectClsMemberShareRecordById(String id)
    {
        return clsMemberShareRecordMapper.selectClsMemberShareRecordById(id);
    }

    /**
     * 查询会员邀请码分享记录列表
     * 
     * @param clsMemberShareRecord 会员邀请码分享记录
     * @return 会员邀请码分享记录
     */
    @Override
    public List<ClsMemberShareRecord> selectClsMemberShareRecordList(ClsMemberShareRecord clsMemberShareRecord)
    {
        return clsMemberShareRecordMapper.selectClsMemberShareRecordList(clsMemberShareRecord);
    }

    /**
     * 新增会员邀请码分享记录
     * 
     * @param clsMemberShareRecord 会员邀请码分享记录
     * @return 结果
     */
    @Override
    public int insertClsMemberShareRecord(ClsMemberShareRecord clsMemberShareRecord)
    {
        return clsMemberShareRecordMapper.insertClsMemberShareRecord(clsMemberShareRecord);
    }

    /**
     * 修改会员邀请码分享记录
     * 
     * @param clsMemberShareRecord 会员邀请码分享记录
     * @return 结果
     */
    @Override
    public int updateClsMemberShareRecord(ClsMemberShareRecord clsMemberShareRecord)
    {
        return clsMemberShareRecordMapper.updateClsMemberShareRecord(clsMemberShareRecord);
    }

    /**
     * 批量删除会员邀请码分享记录
     * 
     * @param ids 需要删除的会员邀请码分享记录ID
     * @return 结果
     */
    @Override
    public int deleteClsMemberShareRecordByIds(String[] ids)
    {
        return clsMemberShareRecordMapper.deleteClsMemberShareRecordByIds(ids);
    }

    /**
     * 删除会员邀请码分享记录信息
     * 
     * @param id 会员邀请码分享记录ID
     * @return 结果
     */
    @Override
    public int deleteClsMemberShareRecordById(String id)
    {
        return clsMemberShareRecordMapper.deleteClsMemberShareRecordById(id);
    }
}
